package com.rayc.mall.api.client;

import com.rayc.mall.api.dto.AddressDTO;
import com.rayc.mall.common.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Author: Ray-C
 * @CreateTime: 2025-03-24
 * @Description: address远程调用client
 * @Version: 1.0
 */
@FeignClient("mall-address")
public interface AddressClient {
    @GetMapping("/addresses")
    Result<AddressDTO> queryById(@RequestParam("id") Long id);
}
